import request from '../request';

// 获取所有的打卡信息
export const getAllInfoApi = () => {
    return request({
        method: 'get',
        url: '/daka-info/all'
    })
}

// 获取某日的打卡信息
export const getDayInfoApi = (data) => {
    return request({
        method: 'get',
        url: '/daka-info',
        data
    })
}

// 判断是否打卡成功
export const checkIsSuccessApi = (data) => {
    return request({
        method: 'get',
        url: '/daka-info/check',
        data
    })
}

const infoApi = {
    getAllInfoApi,
    getDayInfoApi,
    checkIsSuccessApi
}

export default infoApi;